package com.yjd.comm.auth.service;

import com.yjd.comm.auth.model.IdcardModel;
import com.yjd.comm.base.service.IBaseService;

/**
 * <b>description</b>：身份认证业务接口<br>
 * <b>time</b>：2014-11-18 11:16:07 <br>
 * <b>author</b>：  renbangjie_vip@163.com
 */
public interface IIdcardService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public IdcardModel insert(IdcardModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(IdcardModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param idcard_id
	 * @return
	 * @throws Exception
	 */
	public int delete(Long idcard_id) throws Exception;
	
	/**
	 * 根据证件号删除
	* @param certNo
	* @return int
	 * @throws Exception 
	 */
	public int deleteByCertNo(String certNo) throws Exception;

}
